package com.xqh.controller;


import com.xqh.common.Global;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @Autowired
    private Environment environment;

    @RequestMapping("/hello")
    public String hello(ModelMap model){
        model.put("imgPath","dasdfasdf");
        System.out.println(Global.getConfig("redis.pool.host"));
        return "index";
    }
}
